Apparatus for implementing processor bus speculative data completion

ABSTRACT

A method, and apparatus are provided for implementing processor bus speculative data completion in a computer system. A memory controller in the computer system sends uncorrected data from a memory to a processor bus. The memory controller also applies the uncorrected data to error correcting code (ECC) checking and correcting circuit. When a single bit error (SBE) is detected, corrected data is sent to the processor bus a predefined number of cycles after the uncorrected data.

FIELD OF THE INVENTION

The present invention relates generally to the data processing field,and more particularly, relates to a method, and apparatus forimplementing processor bus speculative data completion during a memoryread for enabling reduced read memory latency in a computer system.

DESCRIPTION OF THE RELATED ART

In computer systems, an ongoing design goal in developing futurecomputer systems is providing improved performance. The performance of acomputer server is one of the key reasons a customer may or may notchoose to buy a given system.

One of the key benchmarks server customers use is the benchmark TPC-C.Depending on the processor's cycles per instruction (CPI), the memoryCPI can account for more than 50% of the overall CPI. The read memorylatency has a direct impact on server performance.

A need exists for an effective mechanism for improving performance incomputer systems. It is desirable to provide such a mechanism thatenables reduced read memory latency while maintaining effective singlebit error (SBE) detection and correction.

SUMMARY OF THE INVENTION

Principal aspects of the present invention are to provide a method,apparatus and computer program product for implementing processor busspeculative data completion in a computer system. Other importantaspects of the present invention are to provide such method andapparatus for implementing processor bus speculative data completion ina computer system substantially without negative effect and thatovercome many of the disadvantages of prior art arrangements.

In brief, a method, and apparatus are provided for implementingprocessor bus speculative data completion in a computer system. A memorycontroller in the computer system sends uncorrected data from a memoryto a processor bus. The memory controller also applies the uncorrecteddata to error correcting code (ECC) checking and correcting circuit.When a single bit error (SBE) is detected, corrected data is sent to theprocessor bus a predefined number of cycles after the uncorrected data.

In accordance with features of the invention, sending the uncorrecteddata reduces latency of data transfers by at least one cycle, whileproviding effective SBE checking and correction.

In accordance with features of the invention, a memory controller memorymanagement unit (MMU) in the computer system implements methods forprocessor bus speculative data completion. Memory controller MMUincludes a multiplexer, an error correcting code (ECC) checking andcorrecting circuit, and a control logic function coupled to themultiplexer. Uncorrected data from the memory is applied to a firstinput of the multiplexer and corrected data from the ECC checking andcorrecting circuit is applied to a second input of the multiplexer.Normally an output of the multiplexer is the uncorrected data from thememory. When a Single Bit Error (SBE) is detected, the ECC checking andcorrecting circuit applies a signal to the control logic function. Thecontrol logic function applies a control signal to the multiplexerresponsive to the detected Single Bit Error (SBE) for the multiplexer toselect the corrected data signal at the second multiplexer input foroutput of the multiplexer. The output of the multiplexer is sent to theprocessor bus.

BRIEF DESCRIPTION OF THE DRAWINGS

The present invention together with the above and other objects andadvantages may best be understood from the following detaileddescription of the preferred embodiments of the invention illustrated inthe drawings, wherein:

FIG. 1 is a block diagram representations illustrating a computer systemfor implementing methods for processor bus speculative data completionin accordance with the preferred embodiment;

FIG. 2 illustrates a conventional memory controller arrangement;

FIG. 3 illustrates a memory controller of the computer system of FIG. 1for implementing methods for processor bus speculative data completionin accordance with the preferred embodiment;

FIGS. 4, 5, 6, 7, and 8 are timing diagrams illustrating operation ofthe MMU of FIG. 3 implementing methods for processor bus speculativedata completion in accordance with the preferred embodiment.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

Referring now to the drawings, in FIG. 1 there is shown a computersystem generally designated by the reference character 100 forimplementing methods for processor bus speculative data completion inaccordance with the preferred embodiment. Computer system 100 includes aplurality of main processors 102 coupled by a processor bus 104 to amemory controller or memory management unit (MMU) 106. A system memory108 and input/output (I/O) 110 is coupled to the processor bus 104 bythe memory controller MMU 106. A dotted line labeled PATH OF INTERESTillustrates a data path from the system memory 108 to the processor bus104 for implementing processor bus speculative data completion inaccordance with the preferred embodiment.

Computer system 100 is shown in simplified form sufficient forunderstanding the present invention. The illustrated computer system 100is not intended to imply architectural or functional limitations. Thepresent invention can be used with various hardware implementations andsystems and various other internal hardware devices, for example, asingle main processor could be used.

In accordance with features of the preferred embodiment, the memorycontroller 106 is provided for implementing methods for processor busspeculative data completion in accordance with the preferred embodiment.The memory controller 106 sends the uncorrected data directly to theprocessor bus logic, providing improved performance over prior artarrangements.

For example, as illustrated in FIG. 2, in prior art arrangements thememory read data return is applied to a memory controller single biterror correct logic before being sent to the processor interface. Thislatency is added regardless of whether or not a single bit error (SBE)occurred.

In accordance with features of the preferred embodiment, in parallelwith sending uncorrected data directly to the processor bus logic, thememory controller MMU 106 determines if a single bit error (SBE)occurred and indicates this to the processor bus. Because returning acache line of data takes multiple cycles or beats on both the memory andprocessor bus, scenarios must be handled where the first beats are good,but a subsequent beat includes an SBE. If an SBE occurs, then on thedata interface between the memory controller and processor bus correcteddata is sent a predefined number of cycles after the uncorrected data,such as 2 cycles later.

Referring to FIG. 3, there is shown the memory controller MMU 106 of thecomputer system 100 for implementing methods for processor busspeculative data completion in accordance with the preferred embodiment.Memory controller MMU 106 includes a multiplexer (MUX) 302, an errorcorrecting code (ECC) checking and correcting circuit 304, and a controllogic function 306 coupled to the MUX 302. Uncorrected data from thememory 108 is applied to a first input of MUX 302 as indicated at a lineUNCORRECTED DATA 308 and corrected data from the ECC checking andcorrecting circuit 304 is applied to a second input of MUX 302 asindicated at a line CORRECTED DATA 310. When a Single Bit Error (SBE) isdetected, the ECC checking and correcting circuit 304 applies a signalto the control logic function 306 as indicated at a line SBE DETECTED312. The output of MUX 302 is sent to the processor bus 104 as indicatedat a line MC_XX_DATA SIGNAL, as shown in the timing diagrams of FIGS.4-8.

Typically the MC_XX_DATA signal is the uncorrected data signal appliedto the first input of MUX 302. When a Single Bit Error (SBE) isdetected, then the MC_XX_DATA signal is the corrected data signalapplied to the second input of MUX 302 from the ECC checking andcorrecting circuit 304. The control logic function 306 applies a controlsignal to the MUX 302 when the Single Bit Error (SBE) is detected forthe MUX to select the corrected data signal at the second MUX input.

Referring to FIGS. 4, 5, 6, 7, and 8 there are shown timing diagramsillustrating operation of the memory controller MMU 106 implementingmethods for processor bus speculative data completion in accordance withthe preferred embodiment. The following Table 2 provides a descriptionof the illustrated signals of FIGS. 4-8 provided by the memorycontroller MMU 106.

Table 2 SIGNAL DESCRIPTIONS FPVAL signal indicates that valid data willbe flowing from Memory 108, a number of X cycles, such as sixteen (16)cycles after this signal is asserted.

FPSBE indicates whether or not a Single Bit Error (SBE), which iscorrectable, has occurred within the Memory Data. This signal isasserted in conjunction with the associated Memory Data.

FPKEY is an identifying tag associated with each cache line of MemoryData.

MC_XX_DATA is Data from the memory controller MMU 106 that is being sentto the Processor Bus logic 104. This data is usually the uncorrectedmemory data, but is switched to the corrected data as necessary, asshown and described with respect to in FIG. 3.

Q.OOD is a Processor Bus signal that is an identifying tag associatedwith the cache line of data.

Q.DRDY is a Processor Bus signal that indicates that valid data is beingtransferred on the processor bus. Note that this signal is asserted fortwo bus-clocks for every cache line of data transferred.

Q.DAT are the Processor Bus data signals.

Referring now to FIG. 4, the respective above-described signals areshown for a memory read operation without a Single Bit Error (SBE). TheQ.DRDY signal is asserted for two consecutive bus clocks with the Q.DATprocessor bus data signals.

In FIG. 5, the respective above-described signals are shown for twomemory reads with a Single Bit Error (SBE) in the first 16 bytes of thefirst memory read. The SBE in the first 16 bytes of the first memoryread is indicated by XX within line representing the MC_XX_DATA dataoutput of the memory controller MMU 106. The second FPSBE signal isasserted to indicate that a Single Bit Error (SBE) has occurred withinthe Memory Data and that the second transfer is from the ECC check andcorrect circuit 304. The Q.DRDY signal is asserted for two consecutivebus clocks with the Q.DAT processor bus data signals.

In FIG. 6, the respective above-described signals are shown for twomemory reads with a Single Bit Error (SBE) in the second 16 bytes of thefirst memory read. The second FPSBE signal is asserted to indicate thatthe Single Bit Error (SBE) has occurred within the Memory Data and thatthe data transfer is from the ECC check and correct circuit 304. TheQ.DRDY signal is asserted for two consecutive bus clocks with the Q.DATprocessor bus data signals.

In FIG. 7, the respective above-described signals are shown for twomemory reads with a Single Bit Error (SBE) in the third 16 bytes of thefirst memory read. The second FPSBE signal is asserted to indicate thatthe Single Bit Error (SBE) has occurred within the Memory Data and thatthe third transfer is from the ECC check and correct circuit 304. TheQ.DRDY signal is asserted for two separated bus clocks for the validQ.DAT processor bus data signals.

In FIG. 8, the respective above-described signals are shown for twomemory reads with a Single Bit Error (SBE) in the fourth 16 bytes of thefirst memory read. The second FPSBE signal is asserted to indicate thatthe Single Bit Error (SBE) has occurred within the Memory Data and thatthe fourth transfer is from the ECC check and correct circuit 304. TheQ.DRDY signal is asserted for two separated bus clocks for the validQ.DAT processor bus data signals.

While the present invention has been described with reference to thedetails of the embodiments of the invention shown in the drawing, thesedetails are not intended to limit the scope of the invention as claimedin the appended claims.

1-5. (canceled)
 6. Apparatus for implementing processor bus speculativedata completion in a computer system comprising: a memory controllermemory management unit (MMU) for implementing processor bus speculativedata completion; said memory controller MMU including a multiplexer, anerror correcting code (ECC) checking and correcting circuit, and acontrol logic function; said multiplexer having a first input forreceiving uncorrected data from a memory and having a second input forreceiving corrected data from said ECC checking and correcting circuit;said multiplexer having an output coupled to a processor bus; said ECCchecking and correcting circuit applying a detected error signal to thecontrol logic function responsive to a Single Bit Error (SBE) beingdetected; and said control logic function coupled to said multiplexerfor applying a select signal to said multiplexer responsive to a saiddetected error signal for selecting a multiplexer output of said secondinput.
 7. Apparatus for implementing processor bus speculative datacompletion as recited in claim 6 wherein the uncorrected data from thememory is coupled to said multiplexer output during normal operation.8-9. (canceled)
 10. Apparatus for implementing processor bus speculativedata completion as recited in claim 6 wherein said multiplexer outputincludes processor bus signals applied to the processor bus. 11.Apparatus for implementing processor bus speculative data completion asrecited in claim 6 wherein during normal operation said multiplexersends uncorrected data to the processor bus for reducing latency of datatransfers by at least one cycle.
 12. Apparatus for implementingprocessor bus speculative data completion as recited in claim 6 whereinsaid multiplexer sends corrected data to the processor bus from said ECCchecking and correcting circuit responsive to a Single Bit Error (SBE)being detected, said corrected data applied to the processor bus apredefined number of cycles after the uncorrected data having the SingleBit Error (SBE).